package com.tianruan.dc.modules.sys.user.entity.db;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tianruan.dc.common.base.entity.db.BaseDO;
import lombok.Data;
import lombok.Getter;

import javax.validation.constraints.NotEmpty;
import java.time.LocalDateTime;

@Data
@TableName("t_ipa_consultation")
public class ConsultationDO extends BaseDO<UserDO> {

    @Getter
    private String id;
    //主键

    private String user_name;
    //用户id

    @NotEmpty(message = "需求不能为空")
    private String demand;
    //咨询需求

    @NotEmpty(message = "项目简介不能为空")
    private String project_brief;
    //项目简介

    @NotEmpty(message = "技术问题不能为空")
    private String question;
    //技术问题

    @NotEmpty(message = "期望解决方法不能为空")
    private String expectation;
    //期望解决方法

    private int status;
    //状态
    private String create_by;
    //创建者

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime create_date;
    // 创建日期
    private String update_by;
    // 更新者
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime update_date;
    // 更新日期
    private String delFlag;
    // 删除标记
}
